package view.listeners;

import java.awt.Window;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

/**
 * @author Alexander Müller
 * 
 */
public class CancelListener implements ActionListener {

	private final Window comp;

	public CancelListener(Window comp) {
		this.comp = comp;
	}

	@Override
	public void actionPerformed(ActionEvent e) {
		comp.dispose();
		
	}

}
